<%--
 *  @Author: JackYin
 *  Date:    2011/09/16
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>
<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>

<%
  //init param
  Category cat = Category.getInstance("jsp.HospitalProductGroup");
  String strModuleName = "ERM";
  String privilegeCode = "10320";
  String contextPath = request.getContextPath();
  HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<% //--------------------  include files list --%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<%int LangNums = ConstantProp.multiLangNumber;%>
<html>
<head>
<title>HospitalProductGroup.jsp</title>
<PageFlow:CheckPageFlow pageName="p_productopenclosesummary"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath %>/js/ScriptLib.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/Calendar.js"></script>
<script language="JavaScript">

function page_setStr(str)
{	
    document.cform.reason.value = str;
}

function page_allcheckselect(){
	var allcheck = cform.allcheck.checked;
	var alldatafile = document.getElementsByName('deleteids');
	var length = alldatafile.length;
	if(allcheck){
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = true;
		}
	}else{
		for(var i = 0 ; i < length;i++){
			alldatafile[i].checked = false;
		}	
	}
}

function page_submit(name){ 
	document.cform.portname.value= name;
	document.cform.actionname.value="submit";
	document.cform.target="_self";
	isRunning = true;
	document.cform.submit();
}

</script>
</head>
<%
String strDisplayFlag="";
if(request.getParameter("displayflag")!=null)
{
  strDisplayFlag=request.getParameter("displayflag");
}
%>
<iframe name="reloadHandler" style="display:none" ></iframe>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="summary_top"></td>
  </tr>
</table>
<table width="100%" border="1" cellpadding="0" bordercolorlight="#999999" bordercolordark="#FFFFFF" cellspacing="0">
  <form id="pageform" name="cform" method="post" action="/oval/Dispatcher" >
  <input type="hidden" name="pagename" value="p_productopenclosesummary">
  <input type="hidden" name="actionname">
   
		<tr class="deepblue-left"> 
		<!-- 
		<td width="2%" class="title_center"><input type="checkbox" name="allcheck" class="normalradio" onclick="page_allcheckselect();"></td>
		 -->
		   <td width="10%" class="title_center"><%= label.getLabelName("L_HospitalCode1") %></td>
          	<td width="20%" class="title_center"><%= label.getLabelName("L_HospitalName") %></td>
          	<td width="10%" class="title_center"><%= label.getLabelName("L_ProductCode") %></td>
          	<td width="20%" class="title_center"><%= label.getLabelName("L_ProductName") %></td>
			<td width="15%" class="title_center"><%= label.getLabelName("L_Accountcondition") %></td>
			<td width="10%" class="title_center"><%= label.getLabelName("L_Status") %></td>
			
	  	</tr>
      	  <%
      	    //BJ0479
            Vector searchresults=(Vector)pageContext.getAttribute("searchresults");
            if(searchresults==null)
              searchresults=new Vector();
            int i=1;
            int org =0;;
            String strClassType="none";
          %>
          <logic:iterate id="searchresultsitem" collection="<%= searchresults %>" >
          <%
          	HashMap PSMap = (HashMap)pageContext.getAttribute("searchresultsitem");
            Integer oColIndexLang=new Integer(i);
            if(i%2==0)
              strClassType="td-listrom";
            else
              strClassType="none";
            i++;
          %>
         
         <tr onMouseOver="this.className='tr-over'" onMouseOut="this.className='<%=JspHelper.filterNull(strClassType)%>'"  class="<%=JspHelper.filterNull(strClassType)%>"> 
         <!-- 
            <td class="td_center"> 
              	<input type="checkbox" name="deleteids" id="deleteids<%=JspHelper.filterNull(i-1)%>" value="<custom:write name="searchresultsitem" property="doctorprodid"/>" class="normalradio" />
            </td>
          -->
            
             <td class="td_center" ><custom:write name="searchresultsitem" property="orgcode" nbsp="true"/></td>
            <td class="td_center" ><custom:write name="searchresultsitem" property="orgname" nbsp="true"/></td>
            
            <td class="td_center"><custom:write name="searchresultsitem" property="prodcode" nbsp="true"/></td>
            <td class="td_center"><custom:write name="searchresultsitem" property="brandcode" nbsp="true"/></td>
            <td class="td_center"><custom:write name="searchresultsitem" property="opencloseinfname" nbsp="true"/></td>
            <td class="td_center"><custom:write name="searchresultsitem" property="statusname" nbsp="true"/></td>
           
           	
          </tr>
          </logic:iterate>
          
  </form>
</table>
	
	<table width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td class="summary_top"></td>
		</tr>
		<tr>
			<td class="td_center">
			<a onclick="page_submit('zylautocountproductopen')"><custom:button type="2" label="L_AutoCount" imgsrc="delete.gif" border="0" style="width:60" privilegeCode="MB-CPFJ01"/></a>
			<a onclick="__back()"><custom:button type="2" label="L_Back" imgsrc="delete.gif" border="0" style="width:60"/></a>
			</td>	
		</tr>
	</table>

</body>
</html>